﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11_01_Binding.Common
{
    //特性，类似于给一个字段加上一个属性
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
	public class MyNameAttribute: Attribute
	{
        public string Name { get; set; }

        public bool IsShow { get; set; }

        public MyNameAttribute(bool isShow,string name)
        {
            IsShow = isShow;
            Name = name;
        }
    }
}
